home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / airfox.swf / scripts / frame_8 / PlaceObject2_250_44 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-06-13  |  1.3 KB  |  51 lines

  1. onClipEvent(enterFrame){
  2.    if(_name != "ship1")
  3.    {
  4.       if(_Y < -20)
  5.       {
  6.          _alpha = 100;
  7.       }
  8.       if(Key.isDown(32) && 0 < _alpha)
  9.       {
  10.          if(firecount == 0)
  11.          {
  12.             if(1 < _root.bulletstop)
  13.             {
  14.                _root.bonuscountdown--;
  15.                if(0 >= _root.bonuscountdown)
  16.                {
  17.                   _root.bonuscountdown = 50;
  18.                   _root.bulletstop = 1;
  19.                }
  20.             }
  21.             if(_root.shotsfired < 140)
  22.             {
  23.                _root.shotsfired += 2;
  24.             }
  25.             duplicateMovieClip(_root.bullets,_root.bulletcount,16384 + _root.bulletcount);
  26.             setProperty("_root." + _root.bulletcount, _X, _X);
  27.             setProperty("_root." + _root.bulletcount, _Y, _Y);
  28.             _root.bulletcount = _root.bulletcount + 1;
  29.             if(2010 < _root.bulletcount)
  30.             {
  31.                _root.bulletcount = 2000;
  32.             }
  33.          }
  34.          firecount++;
  35.          if(firecount >= 10)
  36.          {
  37.             firecount = 0;
  38.          }
  39.       }
  40.       else
  41.       {
  42.          firecount = 0;
  43.          if(0 < _root.shotsfired)
  44.          {
  45.             _root.shotsfired -= 0.2;
  46.          }
  47.       }
  48.       _rotation = _root.dragger._rotation;
  49.    }
  50. }
  51.